//
//  UIBarButtonItem+Extention.h
//  SinaWeibo
//
//  Created by Apple on 16/8/7.
//  Copyright © 2016年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (Extention)

/**
 *  设置自定义导航栏的左右按钮，若直接添加左右按钮，系统将默认显示蓝色tintColor
 *
 *  @param imgName 要点击按钮的图片（同时要包括高亮状态是的图片，图片名字只相差_highlighted
 *
 *  @param action 监听方法
 *
 *  @return 返回一个设置好自定义图片
 **/
+(UIBarButtonItem *)setNavItemWithImageName:(NSString *)imgName target:(id)target action:(SEL)action;

+(UIBarButtonItem *)setNavItemWithTitle:(NSString *)title target:(id)target action:(SEL)action;

+(UIBarButtonItem *)setNavItemWithTitle:(NSString *)title normalColor:(UIColor *)normalColor highlightedColor:(UIColor *)highlightedTitleColor target:(id)target action:(SEL)action;

+(UIBarButtonItem *)setNavItemWithTitleDisableColor:(NSString *)title normalColor:(UIColor *)normalColor disabledColor:(UIColor *)disabledColor target:(id)target action:(SEL)action;

@end
